﻿<UserControl x:Class="OI.Views.MessageBoxView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Border BorderThickness="1" BorderBrush="Black" CornerRadius="4" Padding="4" Visibility="{Binding IsVisible, Converter={StaticResource BoolToVisibility}}" Background="White">
        <StackPanel Margin="0">
            <ScrollViewer MaxWidth="400" MaxHeight="200" VerticalScrollBarVisibility="Auto" Padding="0">
                <TextBlock x:Name="Message" 
                       TextWrapping="Wrap"
                       MaxWidth="380" />
            </ScrollViewer>
            <Button x:Name="Ok"
                Content="OK" Width="48"
                HorizontalAlignment="Right"/>
        </StackPanel>
    </Border>
</UserControl>